<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>爬虫web版测试环境</title>
</head>
<body>
    <style type="text/css">
        #Testcode {
            width: 50%;
            height: 400px;
        }

        iframe {
            width: 50%;
            height: 400px;
        }
    </style>
    <div id="header">
        <h1>爬虫web版测试</h1>
    </div>
    <script type="text/javascript">
        function submitCode(type){
            var code = document.getElementById("Testcode").value;
            document.getElementById("code").value = code;
            document.getElementById("type").value = type;
            document.getElementById("codeform").submit();
        }
    </script>
    
    <form action="/webspider/run_code" method="post" id="codeform" target="i">
        <div id="codearea">
            <textarea id="Testcode"></textarea>
        </div>
        <input type="hidden" id="code" name="code">
        <input type="hidden" id="type" name="type">
        <input type="text" id="url" name="url">
        <input type="text" id="next" name="next">
        <input type="submit" value="单测" onclick="submitCode(0)">
        <input type="submit" value="长测" onclick="submitCode(1)">
        <input type="submit" value="单步调试" onclick="submitCode(2)">
    </form>
</body>
</html>